﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Templates/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="PageEdit.aspx.cs" Inherits="VIT.Web.Admin.PageEdit" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Assembly="Mark.Web.UI.WebControls.DateTimePicker" Namespace="Mark.Web.UI.WebControls" tagprefix="mark" %>
<%@ Register Assembly="VIT.Web.Controls" Namespace="VIT.Web.Controls" TagPrefix="VIT" %>

<asp:Content ID="HeadContent" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="../../Includes/Validation/Validation.css" rel="stylesheet" type="text/css" />
    <script src="../../Includes/Validation/ValidationEngine.js" type="text/javascript"></script>
    <script src="../../Includes/Validation/Validation.js" type="text/javascript"></script>
    <title>Cập nhật thông tin</title>
</asp:Content>
<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" runat="server">
    <form id="aspnetForm" runat="server">         
        <!-- Content (Right Column) -->
        <div id="content" class="box">
        <asp:Panel ID="pnAlert" runat="server">
            <p class="msg done" id="lblThanhCong" runat="server" visible="false">Dữ liệu đã lưu thành công.</p>
            <p class="msg error" id="lblThatBai" runat="server" visible="false">Không thể lưu dữ liệu.</p>
            <p class="msg error" id="lblInvalidImage" runat="server" visible="false">Định dạng hình không đúng.</p>
	    </asp:Panel>
        <div ID="ButtonInsert" class="toolbar" runat="server" visible="false">
            <VIT:Submit ID="Save" runat="server" Function="Page_Insert" ToolTip="Lưu và quay lại danh sách" CssClass="icon-32-save" BorderStyle="None" onclick="Save_Click" OnClientClick="$('#aspnetForm').validationEngine();"/>
            <VIT:Submit ID="Apply" runat="server" Function="Page_Insert" ToolTip="Lưu lại" CssClass="icon-32-apply" BorderStyle="None" onclick="Apply_Click" OnClientClick="$('#aspnetForm').validationEngine();" />
            <asp:Button runat="server" ToolTip="Hủy bỏ" CssClass="icon-32-cancel" BorderStyle="None" onclick="Cancel_Click"/>
        </div>  
        <div ID="ButtonModify" class="toolbar" runat="server" visible="false">
            <VIT:Submit ID="Save2" runat="server" Function="Page_Modify" ToolTip="Lưu và quay lại danh sách" CssClass="icon-32-save" BorderStyle="None" onclick="Save_Click" OnClientClick="$('#aspnetForm').validationEngine();"/>
            <VIT:Submit ID="Apply2" runat="server" Function="Page_Modify" ToolTip="Lưu lại" CssClass="icon-32-apply" BorderStyle="None" onclick="Apply_Click" OnClientClick="$('#aspnetForm').validationEngine();" />
            <asp:Button runat="server" ToolTip="Hủy bỏ" CssClass="icon-32-cancel" BorderStyle="None" onclick="Cancel_Click"/>
        </div>  
        <div class="clr"></div>        
        <fieldset>
		    <legend>Thông tin chi tiết</legend>
            <table class="nostyle">
                <tr>
                    <td class="va-top">Id:</td>
                    <td colspan=2>
                        <asp:TextBox ID="txtId" runat="server" Width="100px" CssClass="validate[length[1,20]]" MaxLength="20"></asp:TextBox>
                    </td>
                </tr>					
                <tr>
					<td class="va-top">Ngôn ngữ:</td>
					<td colspan=2>
                        <asp:DropDownList ID="LanguageId" runat="server" AutoPostBack="True" 
                            onselectedindexchanged="LanguageId_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>Hình ảnh : </td>
                    <td>
                        <asp:FileUpload ID="fupImg" runat="server" Width="375px" />
                    </td>
                    <td>
                        <asp:Image ID="img" runat="server" width="100px" height="100px" style="float:left; margin-left:20px;" Visible="false"/>
                    </td>
                </tr>
                <tr>
					<td style="width:100px;">Tiêu đề:</td>
					<td colspan=2><asp:TextBox ID="ArticleTitle" runat="server" Width="450px" CssClass="validate[length[1,300]]" MaxLength="300"></asp:TextBox></td>
				</tr>				
                <tr>
					<td valign="top">Mô tả:</td>
					<td colspan=2>
                        <asp:TextBox ID="Description" runat="server" Height="50px" TextMode="MultiLine" Width="500px" MaxLength="500"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td valign="top">Nội dung:</td>
					<td colspan=2>
                        <FCKeditorV2:FCKeditor ID="Contents" runat="server" BasePath="../../Includes/fckeditor/" 
                            Height="600px" Width="820px"></FCKeditorV2:FCKeditor>
					</td>
				</tr>
                <tr>
					<td valign="top">Tag:</td>
					<td colspan=2>
                        <asp:TextBox ID="Tag" runat="server" Width="300px" MaxLength="100"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td>Order:</td>
					<td colspan=2>
						<asp:TextBox ID="Orders" runat="server" Width="50px" Text="10" MaxLength="3"></asp:TextBox>
					</td>
				</tr>                			
			</table>
		</fieldset>
        <script type="text/javascript">
            $("#aside ul li#PageList").addClass("submenu-active");
        </script>
        </div>
    </form>
</asp:Content>
